#include "test.h"
#include <SkipList.hpp>
#include <allocator.hpp>
#include <iostream>
#include <list>
#include <vector>

int main() {
    SkipList<int> skipList;

    for (int i = 0; i < 5; ++i) {
        auto addValue = rand();
        // std::cout << "add value: " << addValue << "\n";
        skipList.add(addValue);
    }

    while (skipList.end() != skipList.find(26500)) {
        std::cout << "has 26500,remove 26500  \n";
        skipList.erase(26500);
    }

    testPrint(skipList, "all element : ");

    std::cout << "skipList Index: \n";
    skipList.printIndex();
    return 0;
}